package com.company.bookstore.validator.user_admin_module;

import com.company.bookstore.exception.user_admin_module.CustomException;

/**
 * AbstractValidatorHandler
 *  吴经纶
 *  抽象验证逻辑类
 * @blame Android Team
 */
public class AbstractValidatorHandler implements ValidatorHandler  {
    public boolean doValidator(Object object) throws NoSuchMethodException, CustomException {
//        需要转换类型 特定处理类型
        throw new NoSuchMethodException("不允许调用父类方法");
    }

    @Override
    public boolean validator(Object o) throws NoSuchMethodException, CustomException {
            doValidator(o);
            return true;
    }


}
